<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>RT-Thread RTOS: rt_mempool Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">RT-Thread RTOS
   &#160;<span id="projectnumber">1.2.0</span>
   </div>
   <div id="projectbrief">An open source embedded real-time operating system</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structrt__mempool.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">rt_mempool Struct Reference<div class="ingroups"><a class="el" href="group___m_m.html">Memory Management</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;rtdef.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ac60b315b45b2a3f15c8f5763c0a88886"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structrt__object.html">rt_object</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#ac60b315b45b2a3f15c8f5763c0a88886">parent</a></td></tr>
<tr class="separator:ac60b315b45b2a3f15c8f5763c0a88886"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c4783f5987099205e935f9124760d3c"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#a8c4783f5987099205e935f9124760d3c">start_address</a></td></tr>
<tr class="separator:a8c4783f5987099205e935f9124760d3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a358b4d35e2ef602461506baa5fc9de85"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#a358b4d35e2ef602461506baa5fc9de85">size</a></td></tr>
<tr class="separator:a358b4d35e2ef602461506baa5fc9de85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a5bbd0c25f8e166cf0cee6568d5f22b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#a3a5bbd0c25f8e166cf0cee6568d5f22b">block_size</a></td></tr>
<tr class="separator:a3a5bbd0c25f8e166cf0cee6568d5f22b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3fcb1189ca2dff9be268e285992c625"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#ga585e2ad0fbab0f83817cb61373465df6">rt_uint8_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#ad3fcb1189ca2dff9be268e285992c625">block_list</a></td></tr>
<tr class="separator:ad3fcb1189ca2dff9be268e285992c625"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25efbd1cdd87127c5221ee8688e04277"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#a25efbd1cdd87127c5221ee8688e04277">block_total_count</a></td></tr>
<tr class="separator:a25efbd1cdd87127c5221ee8688e04277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9af793d845659781f7c14ed4d23c235"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#ae9af793d845659781f7c14ed4d23c235">block_free_count</a></td></tr>
<tr class="separator:ae9af793d845659781f7c14ed4d23c235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa494ddf482327e878499499a874e8ef3"><td class="memItemLeft" align="right" valign="top">rt_list_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#aa494ddf482327e878499499a874e8ef3">suspend_thread</a></td></tr>
<tr class="separator:aa494ddf482327e878499499a874e8ef3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a026c1a71fee95a5c0506e520d6dc4f55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrt__mempool.html#a026c1a71fee95a5c0506e520d6dc4f55">suspend_thread_count</a></td></tr>
<tr class="separator:a026c1a71fee95a5c0506e520d6dc4f55"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Base structure of Memory pool object </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="ac60b315b45b2a3f15c8f5763c0a88886"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structrt__object.html">rt_object</a> rt_mempool::parent</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>inherit from <a class="el" href="structrt__object.html">rt_object</a> </p>

</div>
</div>
<a class="anchor" id="a8c4783f5987099205e935f9124760d3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* rt_mempool::start_address</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>memory pool start </p>

</div>
</div>
<a class="anchor" id="a358b4d35e2ef602461506baa5fc9de85"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a> rt_mempool::size</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>size of memory pool </p>

</div>
</div>
<a class="anchor" id="a3a5bbd0c25f8e166cf0cee6568d5f22b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a> rt_mempool::block_size</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>size of memory blocks </p>

</div>
</div>
<a class="anchor" id="ad3fcb1189ca2dff9be268e285992c625"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#ga585e2ad0fbab0f83817cb61373465df6">rt_uint8_t</a>* rt_mempool::block_list</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>memory blocks list </p>

</div>
</div>
<a class="anchor" id="a25efbd1cdd87127c5221ee8688e04277"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a> rt_mempool::block_total_count</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>numbers of memory block </p>

</div>
</div>
<a class="anchor" id="ae9af793d845659781f7c14ed4d23c235"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a> rt_mempool::block_free_count</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>numbers of free memory block </p>

</div>
</div>
<a class="anchor" id="aa494ddf482327e878499499a874e8ef3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">rt_list_t rt_mempool::suspend_thread</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>threads pended on this resource </p>

</div>
</div>
<a class="anchor" id="a026c1a71fee95a5c0506e520d6dc4f55"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#ga8011d259fdfc54b8a9aa006b4d49ac14">rt_size_t</a> rt_mempool::suspend_thread_count</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>numbers of thread pended on this resource </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structrt__mempool.html">rt_mempool</a></li>
    <li class="footer">Generated on Mon Jan 6 2014 23:05:02 for RT-Thread RTOS by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
